<?php
App::uses('AppModel', 'Model');
/**
 * Transaction Model
 *
 */
class Transaction extends AppModel {

/**
 * Use table
 *
 * @var mixed False or table name
 */
	public $useTable = 'transaction';
	
	
	
	/**
	 * Function getUserInfoByConditions
	 * @author MinhPhan
	 */
	public function getByConditions($arrCondtion){
		try {
			
			$arrResult  = $this->find('all',array(
										'conditions'=>$arrCondtion
										
									));
			debug($arrResult);
			return $arrResult;
		} catch (Exception $ex) {
			$this->log($ex->getMessage(),LOG_ERROR);
		}
	
	}

}
